package io;

import java.io.File;
import java.io.IOException;
import java.util.Scanner;

public class Demo03 {
    public static void main(String[] args) throws IOException {
        Scanner scanner = new Scanner(System.in);
        File file = new File("./test.txt");
        file.createNewFile();
        file.deleteOnExit(); // 退出后销毁 应用于临时文件
//        file.delete();
        scanner.next();
        System.out.println(file.exists());
    }
}
